<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>addAssetcatalog</title>
    <%@include file="../header.html" %>
        
</head>
<%String side_bar_page = basePath+"side_bar.jsp"; %>


<script type="text/javascript" src="./js/validator.js"></script>


<body >
    <div >
		<jsp:include page="../side_bar.jsp" flush="true"/> 
		<jsp:include page="../top_bar.jsp" flush="true"/> 

        </div>
<div  style="width:90%; float:right; margin:15px;">  

 <form action="adduser.action" method="post" onSubmit="return Validator.Validate(this,3)">  
        <table width="500" align="center">  
            <caption>ADD USER INFORMATION</caption>  
              
            <tr height="26px">  
                <td width="150px" align="right">RoleID</td>  
                <td width="350px">  
               
                    <input type="text"  name="user.roleid" value="1" readonly="readonly"/>  
                </td>  
            </tr> 
      
              <tr height="26px">  
                <td width="150px" align="right">DeptID</td>  
                <td width="350px">  
                
                    <select name="user.dept.deptid">
   <option value="">
   </option>
   <c:forEach var="dept" items="${depts }" >
   <option value=${dept.deptid }>${dept.deptname }</option>
   </c:forEach>
  </select>
                </td>  
            </tr> 
             <tr height="26px">  
                <td width="150px" align="right">UserName</td>  
                <td width="350px">  
                  
                    <input type="text"  name="user.username" dataType="Require" msg="输入不能为空" />  
                </td>  
            </tr> 
              <tr height="26px">  
                <td width="150px" align="right">UserPwd</td>  
                <td width="350px">  
                
                    <input type="password"  name="user.userpwd" dataType="Require" msg="输入不能为空"/>  
                </td>  
            </tr> 
               <tr height="26px">  
                <td width="150px" align="right">UserState</td>  
                <td width="350px">  
                
                    <input type="text"  name="user.userstate" dataType="Require" msg="输入不能为空" value="0" readonly="readonly" />  
                </td>  
            </tr> 
             <tr height="26px">  
                <td width="150px" align="right">Sex</td>  
                <td width="350px">  
                  <select name="user.sex">
                              <option value="男">男</option>
                              <option value="女">女</option>
                     </select>
                   
                </td>  
            </tr> 

               <tr height="26px">  
                <td colspan="2"  align="center" width="500">  
                    <input type="submit" value="Save"/>  
                    <input type="button" value="Back" onclick="window.history.back(-1)"/>  
                </td>  
            </tr>  
            
           
        </table> 
         
    </form>  
    
</div>
     <%@include file="../footer.html" %>
  </body>
</html>  